<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/bootstrap-table.css" rel="stylesheet">
    <script src="http://libs.cdnjs.net/jquery/2.2.1/jquery.js"></script>
    <script src="/js/bootstrap-table.js"></script>
    <script src="/js/bootstrap-table-zh-CN.js"></script>
    <title>register page</title>
</head>
<body>
<h1>entity registration</h1>
<form action="#" th:action="@{/register}" th:object="${user}" method="post">
    <p>name: <input type="text" th:field="*{username}" /></p>
    <p>password: <input type="password" th:field="*{password}" /></p>
    <p>age: <input type="text" th:field="*{age}" /></p>
    <p><input type="submit" value="Submit" /> <input type="reset" value="Reset" /></p>
</form>
</body>
</html>
<!--<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册页</title>
</head>
<body class="text-center">
<form action="register" method="post">
    <h1>用户注册</h1>
    <div>
        <label>用户名:</label><input type="text" id="username" name="username" placeholder="Username" >
    </div>

    <div>
        <label>密 码:</label><input type="password" id="password" name="password" placeholder="Password">
    </div>

    <div>
        <label>年龄:</label><input type="text" id="age" name="age" placeholder="Age">
    </div>
    <button id="submit" type="submit">注册</button>
    <button id="reset" type="reset">清除</button>
</form>

</body>
</html>-->
